package com.yuba.front.domain.bo;

import com.yuba.common.core.validate.AddGroup;
import com.yuba.common.core.validate.EditGroup;
import com.yuba.front.domain.LikePosts;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@AutoMapper(target = LikePosts.class, reverseConvertGenerate = false)
public class LikePostsBo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 点赞id
     */
    @NotNull(message = "点赞id不能为空", groups = { EditGroup.class })
    private Long likeId;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 帖子id
     */
    @NotNull(message = "帖子id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long postId;

    /**
     * 帖子标题
     */
    private String title;
}
